Skip to content

Conversation

@ksss
Copy link
Collaborator

@ksss ksss commented Jan 22, 2025

Type aliases and interfaces cannot overlap.
Therefore, if they are defined at the top level, they affect all RBS files being loaded, so caution is required when using them.

I moved the four interfaces and four type aliases defined in json under the JSON module.

This change is incompatible, and any type definitions already using these signatures will need to be updated.
However, in the scope of my investigation, I did not find any usage of these.

As for _ToJson, it is also used in the RBS library, so I believe it is fine to leave it as it is.

ksss added 7 commits January 22, 2025 11:09
from json_options to JSON::options
from json_generator to JSON::generator
from json_parser to JSON::parser
from json_state to JSON::state
from _JsonReadableIO to JSON::_ReadableIO
from _JsonRead to JSON::_Read
from _JsonToWritableIO to JSON::_WritableIO
from _JsonWrite to JSON::_Write
@soutaro soutaro added this to the RBS 3.9 milestone Jan 24, 2025
Copy link
Member

@soutaro soutaro left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Okay, give it a try! 👍

@soutaro soutaro added this pull request to the merge queue Jan 24, 2025
Merged via the queue into ruby:master with commit b0f7f94 Jan 24, 2025
19 checks passed
@ksss ksss deleted the json-top-level branch January 24, 2025 02:27
@soutaro soutaro added the Released PRs already included in the released version label Mar 11, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Released PRs already included in the released version

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants